export default {
    // 是否启用单数：src/page、src/model。默认值是false，即：src/pages、src/models
    // singular: true,

    // 开启配置式路由
    routes: [{
        path: '/',
        component: '../layout',
        routes: [
            {
                path: '/',
                component: './HelloWorld'
            },
            {
                path: '/helloworld',
                component: './HelloWorld',
            },
            {
                path: '/list',
                component: './List',
            },
            {
                path: 'puzzlecards',
                component: './puzzlecards'
            },
            {
                path: '/dashboard',
                routes: [
                    {
                        path: '/dashboard/analysis',
                        component: 'Dashboard/Analysis',
                        access: 'adminRouteFilter',
                        exact: true,
                    },
                    {
                        path: '/dashboard/monitor',
                        component: 'Dashboard/Monitor'
                    },
                    {
                        path: '/dashboard/workplace',
                        component: 'Dashboard/Workplace'
                    },
                ]
            }
        ]
    }],
    proxy: {
        '/dev': {
            target: 'http://jsonplaceholder.typicode.com',
            changeOrigin: true,
            pathRewrite: {"^/dev": ""}
        }
    },
    plugins: [
        ['umi-plugin-react', {
            // 这里暂时还没有添加配置，该插件还不会有作用，我们会在后面的课程按照需求打开相应的配置
            antd: true,
            dva: true,
        }],
    ],
};